<h1>Docker images 命令</h1>
<p><strong>docker images : </strong>列出本地镜像。</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker images [OPTIONS] [REPOSITORY[:TAG]]</code></pre>
<p>OPTIONS说明：</p>
<ul>
<li><p><strong>-a :</strong>列出本地所有的镜像（含中间映像层，默认情况下，过滤掉中间映像层）；</p><p></p></li>
<li><p><strong>--digests :</strong>显示镜像的摘要信息；</p><p></p></li>
<li><p><strong>-f :</strong>显示满足条件的镜像；</p><p></p></li>
<li><p><strong>--format :</strong>指定返回值的模板文件；</p><p></p></li>
<li><p><strong>--no-trunc :</strong>显示完整的镜像信息；</p><p></p></li>
<li><p><strong>-q :</strong>只显示镜像ID。</p><p></p></li>
</ul>
<h3>实例</h3>
<p>查看本地镜像列表。</p>
<pre><code class="language-Docker">runoob@runoob:~$ docker images

REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE

mymysql                 v1                  37af1236adef        5 minutes ago       329 MB

runoob/ubuntu           v4                  1c06aa18edee        2 days ago          142.1 MB

&lt;none&gt;                  &lt;none&gt;              5c6e1090e771        2 days ago          165.9 MB

httpd                   latest              ed38aaffef30        11 days ago         195.1 MB

alpine                  latest              4e38e38c8ce0        2 weeks ago         4.799 MB

mongo                   3.2                 282fd552add6        3 weeks ago         336.1 MB

redis                   latest              4465e4bcad80        3 weeks ago         185.7 MB

php                     5.6-fpm             025041cd3aa5        3 weeks ago         456.3 MB


...

</code></pre>
<p>列出本地镜像中REPOSITORY为ubuntu的镜像列表。</p>
<pre><code class="language-Docker">root@runoob:~# docker images  ubuntu

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

ubuntu              14.04               90d5884b1ee0        9 weeks ago         188 MB

ubuntu              15.10               4e3b13c8a266        3 months ago        136.3 MB

</code></pre>
